package com.itheima.d4_abstract_template_method.example;

public class Demo {
    public static void main(String[] args) {
        Teacher t = new Teacher("刘老师",18,"Java");
        t.showInfo();

        System.out.println();
        System.out.println();
        Consultant c = new Consultant("杨老师", 18, 100);
        c.showInfo();
    }
}
